home *** CD-ROM | disk | FTP | other *** search
/ LG Super CD / LG Super CD.iso / bitpim / bitpim-0.62-setup.exe / {app} / bitpim.exe / wxPython / misc.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2003-11-06  |  57.3 KB  |  1,322 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.3)
  3.  
  4. import miscc
  5.  
  6. class wxObjectPtr:
  7.     
  8.     def __init__(self, this):
  9.         self.this = this
  10.         self.thisown = 0
  11.  
  12.     
  13.     def GetClassName(self, *_args, **_kwargs):
  14.         val = miscc.wxObject_GetClassName(self, *_args, **_kwargs)
  15.         return val
  16.  
  17.     
  18.     def Destroy(self, *_args, **_kwargs):
  19.         val = miscc.wxObject_Destroy(self, *_args, **_kwargs)
  20.         return val
  21.  
  22.     
  23.     def __repr__(self):
  24.         return '<%s.%s instance; proxy of C++ wxObject instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  25.  
  26.  
  27.  
  28. class wxObject(wxObjectPtr):
  29.     
  30.     def __init__(self, this):
  31.         self.this = this
  32.  
  33.  
  34.  
  35. class wxSizePtr:
  36.     
  37.     def __init__(self, this):
  38.         self.this = this
  39.         self.thisown = 0
  40.  
  41.     
  42.     def __del__(self, delfunc = miscc.delete_wxSize):
  43.         if self.thisown == 1:
  44.             
  45.             try:
  46.                 delfunc(self)
  47.  
  48.         
  49.  
  50.     
  51.     def Set(self, *_args, **_kwargs):
  52.         val = miscc.wxSize_Set(self, *_args, **_kwargs)
  53.         return val
  54.  
  55.     
  56.     def GetX(self, *_args, **_kwargs):
  57.         val = miscc.wxSize_GetX(self, *_args, **_kwargs)
  58.         return val
  59.  
  60.     
  61.     def GetY(self, *_args, **_kwargs):
  62.         val = miscc.wxSize_GetY(self, *_args, **_kwargs)
  63.         return val
  64.  
  65.     
  66.     def GetWidth(self, *_args, **_kwargs):
  67.         val = miscc.wxSize_GetWidth(self, *_args, **_kwargs)
  68.         return val
  69.  
  70.     
  71.     def GetHeight(self, *_args, **_kwargs):
  72.         val = miscc.wxSize_GetHeight(self, *_args, **_kwargs)
  73.         return val
  74.  
  75.     
  76.     def SetWidth(self, *_args, **_kwargs):
  77.         val = miscc.wxSize_SetWidth(self, *_args, **_kwargs)
  78.         return val
  79.  
  80.     
  81.     def SetHeight(self, *_args, **_kwargs):
  82.         val = miscc.wxSize_SetHeight(self, *_args, **_kwargs)
  83.         return val
  84.  
  85.     
  86.     def asTuple(self, *_args, **_kwargs):
  87.         val = miscc.wxSize_asTuple(self, *_args, **_kwargs)
  88.         return val
  89.  
  90.     
  91.     def __eq__(self, *_args, **_kwargs):
  92.         val = miscc.wxSize___eq__(self, *_args, **_kwargs)
  93.         return val
  94.  
  95.     
  96.     def __ne__(self, *_args, **_kwargs):
  97.         val = miscc.wxSize___ne__(self, *_args, **_kwargs)
  98.         return val
  99.  
  100.     
  101.     def __setattr__(self, name, value):
  102.         if name == 'x':
  103.             miscc.wxSize_x_set(self, value)
  104.             return None
  105.         
  106.         if name == 'y':
  107.             miscc.wxSize_y_set(self, value)
  108.             return None
  109.         
  110.         if name == 'width':
  111.             miscc.wxSize_width_set(self, value)
  112.             return None
  113.         
  114.         if name == 'height':
  115.             miscc.wxSize_height_set(self, value)
  116.             return None
  117.         
  118.         self.__dict__[name] = value
  119.  
  120.     
  121.     def __getattr__(self, name):
  122.         if name == 'x':
  123.             return miscc.wxSize_x_get(self)
  124.         
  125.         if name == 'y':
  126.             return miscc.wxSize_y_get(self)
  127.         
  128.         if name == 'width':
  129.             return miscc.wxSize_width_get(self)
  130.         
  131.         if name == 'height':
  132.             return miscc.wxSize_height_get(self)
  133.         
  134.         raise AttributeError, name
  135.  
  136.     
  137.     def __repr__(self):
  138.         return '<%s.%s instance; proxy of C++ wxSize instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  139.  
  140.     
  141.     def __str__(self):
  142.         return str(self.asTuple())
  143.  
  144.     
  145.     def __repr__(self):
  146.         return 'wxSize' + str(self.asTuple())
  147.  
  148.     
  149.     def __len__(self):
  150.         return len(self.asTuple())
  151.  
  152.     
  153.     def __getitem__(self, index):
  154.         return self.asTuple()[index]
  155.  
  156.     
  157.     def __setitem__(self, index, val):
  158.         if index == 0:
  159.             self.width = val
  160.         elif index == 1:
  161.             self.height = val
  162.         else:
  163.             raise IndexError
  164.  
  165.     
  166.     def __nonzero__(self):
  167.         return self.asTuple() != (0, 0)
  168.  
  169.     
  170.     def __getinitargs__(self):
  171.         return ()
  172.  
  173.     
  174.     def __getstate__(self):
  175.         return self.asTuple()
  176.  
  177.     
  178.     def __setstate__(self, state):
  179.         self.Set(*state)
  180.  
  181.  
  182.  
  183. class wxSize(wxSizePtr):
  184.     
  185.     def __init__(self, *_args, **_kwargs):
  186.         self.this = miscc.new_wxSize(*_args, **_kwargs)
  187.         self.thisown = 1
  188.  
  189.  
  190.  
  191. class wxRealPointPtr:
  192.     
  193.     def __init__(self, this):
  194.         self.this = this
  195.         self.thisown = 0
  196.  
  197.     
  198.     def __del__(self, delfunc = miscc.delete_wxRealPoint):
  199.         if self.thisown == 1:
  200.             
  201.             try:
  202.                 delfunc(self)
  203.  
  204.         
  205.  
  206.     
  207.     def Set(self, *_args, **_kwargs):
  208.         val = miscc.wxRealPoint_Set(self, *_args, **_kwargs)
  209.         return val
  210.  
  211.     
  212.     def asTuple(self, *_args, **_kwargs):
  213.         val = miscc.wxRealPoint_asTuple(self, *_args, **_kwargs)
  214.         return val
  215.  
  216.     
  217.     def __add__(self, *_args, **_kwargs):
  218.         val = miscc.wxRealPoint___add__(self, *_args, **_kwargs)
  219.         if val:
  220.             val = wxRealPointPtr(val)
  221.             val.thisown = 1
  222.         
  223.         return val
  224.  
  225.     
  226.     def __sub__(self, *_args, **_kwargs):
  227.         val = miscc.wxRealPoint___sub__(self, *_args, **_kwargs)
  228.         if val:
  229.             val = wxRealPointPtr(val)
  230.             val.thisown = 1
  231.         
  232.         return val
  233.  
  234.     
  235.     def __eq__(self, *_args, **_kwargs):
  236.         val = miscc.wxRealPoint___eq__(self, *_args, **_kwargs)
  237.         return val
  238.  
  239.     
  240.     def __ne__(self, *_args, **_kwargs):
  241.         val = miscc.wxRealPoint___ne__(self, *_args, **_kwargs)
  242.         return val
  243.  
  244.     
  245.     def __setattr__(self, name, value):
  246.         if name == 'x':
  247.             miscc.wxRealPoint_x_set(self, value)
  248.             return None
  249.         
  250.         if name == 'y':
  251.             miscc.wxRealPoint_y_set(self, value)
  252.             return None
  253.         
  254.         self.__dict__[name] = value
  255.  
  256.     
  257.     def __getattr__(self, name):
  258.         if name == 'x':
  259.             return miscc.wxRealPoint_x_get(self)
  260.         
  261.         if name == 'y':
  262.             return miscc.wxRealPoint_y_get(self)
  263.         
  264.         raise AttributeError, name
  265.  
  266.     
  267.     def __repr__(self):
  268.         return '<%s.%s instance; proxy of C++ wxRealPoint instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  269.  
  270.     
  271.     def __str__(self):
  272.         return str(self.asTuple())
  273.  
  274.     
  275.     def __repr__(self):
  276.         return 'wxRealPoint' + str(self.asTuple())
  277.  
  278.     
  279.     def __len__(self):
  280.         return len(self.asTuple())
  281.  
  282.     
  283.     def __getitem__(self, index):
  284.         return self.asTuple()[index]
  285.  
  286.     
  287.     def __setitem__(self, index, val):
  288.         if index == 0:
  289.             self.width = val
  290.         elif index == 1:
  291.             self.height = val
  292.         else:
  293.             raise IndexError
  294.  
  295.     
  296.     def __nonzero__(self):
  297.         return self.asTuple() != (0.0, 0.0)
  298.  
  299.     
  300.     def __getinitargs__(self):
  301.         return ()
  302.  
  303.     
  304.     def __getstate__(self):
  305.         return self.asTuple()
  306.  
  307.     
  308.     def __setstate__(self, state):
  309.         self.Set(*state)
  310.  
  311.  
  312.  
  313. class wxRealPoint(wxRealPointPtr):
  314.     
  315.     def __init__(self, *_args, **_kwargs):
  316.         self.this = miscc.new_wxRealPoint(*_args, **_kwargs)
  317.         self.thisown = 1
  318.  
  319.  
  320.  
  321. class wxPointPtr:
  322.     
  323.     def __init__(self, this):
  324.         self.this = this
  325.         self.thisown = 0
  326.  
  327.     
  328.     def __del__(self, delfunc = miscc.delete_wxPoint):
  329.         if self.thisown == 1:
  330.             
  331.             try:
  332.                 delfunc(self)
  333.  
  334.         
  335.  
  336.     
  337.     def Set(self, *_args, **_kwargs):
  338.         val = miscc.wxPoint_Set(self, *_args, **_kwargs)
  339.         return val
  340.  
  341.     
  342.     def asTuple(self, *_args, **_kwargs):
  343.         val = miscc.wxPoint_asTuple(self, *_args, **_kwargs)
  344.         return val
  345.  
  346.     
  347.     def __add__(self, *_args, **_kwargs):
  348.         val = miscc.wxPoint___add__(self, *_args, **_kwargs)
  349.         if val:
  350.             val = wxPointPtr(val)
  351.             val.thisown = 1
  352.         
  353.         return val
  354.  
  355.     
  356.     def __sub__(self, *_args, **_kwargs):
  357.         val = miscc.wxPoint___sub__(self, *_args, **_kwargs)
  358.         if val:
  359.             val = wxPointPtr(val)
  360.             val.thisown = 1
  361.         
  362.         return val
  363.  
  364.     
  365.     def __eq__(self, *_args, **_kwargs):
  366.         val = miscc.wxPoint___eq__(self, *_args, **_kwargs)
  367.         return val
  368.  
  369.     
  370.     def __ne__(self, *_args, **_kwargs):
  371.         val = miscc.wxPoint___ne__(self, *_args, **_kwargs)
  372.         return val
  373.  
  374.     
  375.     def __setattr__(self, name, value):
  376.         if name == 'x':
  377.             miscc.wxPoint_x_set(self, value)
  378.             return None
  379.         
  380.         if name == 'y':
  381.             miscc.wxPoint_y_set(self, value)
  382.             return None
  383.         
  384.         self.__dict__[name] = value
  385.  
  386.     
  387.     def __getattr__(self, name):
  388.         if name == 'x':
  389.             return miscc.wxPoint_x_get(self)
  390.         
  391.         if name == 'y':
  392.             return miscc.wxPoint_y_get(self)
  393.         
  394.         raise AttributeError, name
  395.  
  396.     
  397.     def __repr__(self):
  398.         return '<%s.%s instance; proxy of C++ wxPoint instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  399.  
  400.     
  401.     def __str__(self):
  402.         return str(self.asTuple())
  403.  
  404.     
  405.     def __repr__(self):
  406.         return 'wxPoint' + str(self.asTuple())
  407.  
  408.     
  409.     def __len__(self):
  410.         return len(self.asTuple())
  411.  
  412.     
  413.     def __getitem__(self, index):
  414.         return self.asTuple()[index]
  415.  
  416.     
  417.     def __setitem__(self, index, val):
  418.         if index == 0:
  419.             self.x = val
  420.         elif index == 1:
  421.             self.y = val
  422.         else:
  423.             raise IndexError
  424.  
  425.     
  426.     def __nonzero__(self):
  427.         return self.asTuple() != (0, 0)
  428.  
  429.     
  430.     def __getinitargs__(self):
  431.         return ()
  432.  
  433.     
  434.     def __getstate__(self):
  435.         return self.asTuple()
  436.  
  437.     
  438.     def __setstate__(self, state):
  439.         self.Set(*state)
  440.  
  441.  
  442.  
  443. class wxPoint(wxPointPtr):
  444.     
  445.     def __init__(self, *_args, **_kwargs):
  446.         self.this = miscc.new_wxPoint(*_args, **_kwargs)
  447.         self.thisown = 1
  448.  
  449.  
  450.  
  451. class wxRectPtr:
  452.     
  453.     def __init__(self, this):
  454.         self.this = this
  455.         self.thisown = 0
  456.  
  457.     
  458.     def __del__(self, delfunc = miscc.delete_wxRect):
  459.         if self.thisown == 1:
  460.             
  461.             try:
  462.                 delfunc(self)
  463.  
  464.         
  465.  
  466.     
  467.     def GetX(self, *_args, **_kwargs):
  468.         val = miscc.wxRect_GetX(self, *_args, **_kwargs)
  469.         return val
  470.  
  471.     
  472.     def SetX(self, *_args, **_kwargs):
  473.         val = miscc.wxRect_SetX(self, *_args, **_kwargs)
  474.         return val
  475.  
  476.     
  477.     def GetY(self, *_args, **_kwargs):
  478.         val = miscc.wxRect_GetY(self, *_args, **_kwargs)
  479.         return val
  480.  
  481.     
  482.     def SetY(self, *_args, **_kwargs):
  483.         val = miscc.wxRect_SetY(self, *_args, **_kwargs)
  484.         return val
  485.  
  486.     
  487.     def GetWidth(self, *_args, **_kwargs):
  488.         val = miscc.wxRect_GetWidth(self, *_args, **_kwargs)
  489.         return val
  490.  
  491.     
  492.     def SetWidth(self, *_args, **_kwargs):
  493.         val = miscc.wxRect_SetWidth(self, *_args, **_kwargs)
  494.         return val
  495.  
  496.     
  497.     def GetHeight(self, *_args, **_kwargs):
  498.         val = miscc.wxRect_GetHeight(self, *_args, **_kwargs)
  499.         return val
  500.  
  501.     
  502.     def SetHeight(self, *_args, **_kwargs):
  503.         val = miscc.wxRect_SetHeight(self, *_args, **_kwargs)
  504.         return val
  505.  
  506.     
  507.     def GetPosition(self, *_args, **_kwargs):
  508.         val = miscc.wxRect_GetPosition(self, *_args, **_kwargs)
  509.         if val:
  510.             val = wxPointPtr(val)
  511.             val.thisown = 1
  512.         
  513.         return val
  514.  
  515.     
  516.     def GetSize(self, *_args, **_kwargs):
  517.         val = miscc.wxRect_GetSize(self, *_args, **_kwargs)
  518.         if val:
  519.             val = wxSizePtr(val)
  520.             val.thisown = 1
  521.         
  522.         return val
  523.  
  524.     
  525.     def SetPosition(self, *_args, **_kwargs):
  526.         val = miscc.wxRect_SetPosition(self, *_args, **_kwargs)
  527.         return val
  528.  
  529.     
  530.     def SetSize(self, *_args, **_kwargs):
  531.         val = miscc.wxRect_SetSize(self, *_args, **_kwargs)
  532.         return val
  533.  
  534.     
  535.     def GetLeft(self, *_args, **_kwargs):
  536.         val = miscc.wxRect_GetLeft(self, *_args, **_kwargs)
  537.         return val
  538.  
  539.     
  540.     def GetTop(self, *_args, **_kwargs):
  541.         val = miscc.wxRect_GetTop(self, *_args, **_kwargs)
  542.         return val
  543.  
  544.     
  545.     def GetBottom(self, *_args, **_kwargs):
  546.         val = miscc.wxRect_GetBottom(self, *_args, **_kwargs)
  547.         return val
  548.  
  549.     
  550.     def GetRight(self, *_args, **_kwargs):
  551.         val = miscc.wxRect_GetRight(self, *_args, **_kwargs)
  552.         return val
  553.  
  554.     
  555.     def SetLeft(self, *_args, **_kwargs):
  556.         val = miscc.wxRect_SetLeft(self, *_args, **_kwargs)
  557.         return val
  558.  
  559.     
  560.     def SetRight(self, *_args, **_kwargs):
  561.         val = miscc.wxRect_SetRight(self, *_args, **_kwargs)
  562.         return val
  563.  
  564.     
  565.     def SetTop(self, *_args, **_kwargs):
  566.         val = miscc.wxRect_SetTop(self, *_args, **_kwargs)
  567.         return val
  568.  
  569.     
  570.     def SetBottom(self, *_args, **_kwargs):
  571.         val = miscc.wxRect_SetBottom(self, *_args, **_kwargs)
  572.         return val
  573.  
  574.     
  575.     def Deflate(self, *_args, **_kwargs):
  576.         val = miscc.wxRect_Deflate(self, *_args, **_kwargs)
  577.         return val
  578.  
  579.     
  580.     def Inflate(self, *_args, **_kwargs):
  581.         val = miscc.wxRect_Inflate(self, *_args, **_kwargs)
  582.         return val
  583.  
  584.     
  585.     def InsideXY(self, *_args, **_kwargs):
  586.         val = miscc.wxRect_InsideXY(self, *_args, **_kwargs)
  587.         return val
  588.  
  589.     
  590.     def Inside(self, *_args, **_kwargs):
  591.         val = miscc.wxRect_Inside(self, *_args, **_kwargs)
  592.         return val
  593.  
  594.     
  595.     def Intersects(self, *_args, **_kwargs):
  596.         val = miscc.wxRect_Intersects(self, *_args, **_kwargs)
  597.         return val
  598.  
  599.     
  600.     def OffsetXY(self, *_args, **_kwargs):
  601.         val = miscc.wxRect_OffsetXY(self, *_args, **_kwargs)
  602.         return val
  603.  
  604.     
  605.     def Offset(self, *_args, **_kwargs):
  606.         val = miscc.wxRect_Offset(self, *_args, **_kwargs)
  607.         return val
  608.  
  609.     
  610.     def Set(self, *_args, **_kwargs):
  611.         val = miscc.wxRect_Set(self, *_args, **_kwargs)
  612.         return val
  613.  
  614.     
  615.     def asTuple(self, *_args, **_kwargs):
  616.         val = miscc.wxRect_asTuple(self, *_args, **_kwargs)
  617.         return val
  618.  
  619.     
  620.     def __add__(self, *_args, **_kwargs):
  621.         val = miscc.wxRect___add__(self, *_args, **_kwargs)
  622.         if val:
  623.             val = wxRectPtr(val)
  624.             val.thisown = 1
  625.         
  626.         return val
  627.  
  628.     
  629.     def __eq__(self, *_args, **_kwargs):
  630.         val = miscc.wxRect___eq__(self, *_args, **_kwargs)
  631.         return val
  632.  
  633.     
  634.     def __ne__(self, *_args, **_kwargs):
  635.         val = miscc.wxRect___ne__(self, *_args, **_kwargs)
  636.         return val
  637.  
  638.     
  639.     def __setattr__(self, name, value):
  640.         if name == 'x':
  641.             miscc.wxRect_x_set(self, value)
  642.             return None
  643.         
  644.         if name == 'y':
  645.             miscc.wxRect_y_set(self, value)
  646.             return None
  647.         
  648.         if name == 'width':
  649.             miscc.wxRect_width_set(self, value)
  650.             return None
  651.         
  652.         if name == 'height':
  653.             miscc.wxRect_height_set(self, value)
  654.             return None
  655.         
  656.         self.__dict__[name] = value
  657.  
  658.     
  659.     def __getattr__(self, name):
  660.         if name == 'x':
  661.             return miscc.wxRect_x_get(self)
  662.         
  663.         if name == 'y':
  664.             return miscc.wxRect_y_get(self)
  665.         
  666.         if name == 'width':
  667.             return miscc.wxRect_width_get(self)
  668.         
  669.         if name == 'height':
  670.             return miscc.wxRect_height_get(self)
  671.         
  672.         raise AttributeError, name
  673.  
  674.     
  675.     def __repr__(self):
  676.         return '<%s.%s instance; proxy of C++ wxRect instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  677.  
  678.     
  679.     def __str__(self):
  680.         return str(self.asTuple())
  681.  
  682.     
  683.     def __repr__(self):
  684.         return 'wxRect' + str(self.asTuple())
  685.  
  686.     
  687.     def __len__(self):
  688.         return len(self.asTuple())
  689.  
  690.     
  691.     def __getitem__(self, index):
  692.         return self.asTuple()[index]
  693.  
  694.     
  695.     def __setitem__(self, index, val):
  696.         if index == 0:
  697.             self.x = val
  698.         elif index == 1:
  699.             self.y = val
  700.         elif index == 2:
  701.             self.width = val
  702.         elif index == 3:
  703.             self.height = val
  704.         else:
  705.             raise IndexError
  706.  
  707.     
  708.     def __nonzero__(self):
  709.         return self.asTuple() != (0, 0, 0, 0)
  710.  
  711.     
  712.     def __getinitargs__(self):
  713.         return ()
  714.  
  715.     
  716.     def __getstate__(self):
  717.         return self.asTuple()
  718.  
  719.     
  720.     def __setstate__(self, state):
  721.         self.Set(*state)
  722.  
  723.     
  724.     def __getattr__(self, name):
  725.         d = {
  726.             'x': miscc.wxRect_x_get,
  727.             'y': miscc.wxRect_y_get,
  728.             'width': miscc.wxRect_width_get,
  729.             'height': miscc.wxRect_height_get,
  730.             'top': miscc.wxRect_GetTop,
  731.             'bottom': miscc.wxRect_GetBottom,
  732.             'left': miscc.wxRect_GetLeft,
  733.             'right': miscc.wxRect_GetRight }
  734.         
  735.         try:
  736.             func = d[name]
  737.         except KeyError:
  738.             raise AttributeError, name
  739.  
  740.         return func(self)
  741.  
  742.     
  743.     def __setattr__(self, name, value):
  744.         d = {
  745.             'x': miscc.wxRect_x_set,
  746.             'y': miscc.wxRect_y_set,
  747.             'width': miscc.wxRect_width_set,
  748.             'height': miscc.wxRect_height_set,
  749.             'top': miscc.wxRect_SetTop,
  750.             'bottom': miscc.wxRect_SetBottom,
  751.             'left': miscc.wxRect_SetLeft,
  752.             'right': miscc.wxRect_SetRight }
  753.         
  754.         try:
  755.             func = d[name]
  756.         except KeyError:
  757.             self.__dict__[name] = value
  758.             return None
  759.  
  760.         func(self, value)
  761.  
  762.  
  763.  
  764. class wxRect(wxRectPtr):
  765.     
  766.     def __init__(self, *_args, **_kwargs):
  767.         self.this = miscc.new_wxRect(*_args, **_kwargs)
  768.         self.thisown = 1
  769.  
  770.  
  771.  
  772. class wxPoint2DDoublePtr:
  773.     
  774.     def __init__(self, this):
  775.         self.this = this
  776.         self.thisown = 0
  777.  
  778.     
  779.     def GetFloor(self, *_args, **_kwargs):
  780.         val = miscc.wxPoint2DDouble_GetFloor(self, *_args, **_kwargs)
  781.         return val
  782.  
  783.     
  784.     def GetRounded(self, *_args, **_kwargs):
  785.         val = miscc.wxPoint2DDouble_GetRounded(self, *_args, **_kwargs)
  786.         return val
  787.  
  788.     
  789.     def GetVectorLength(self, *_args, **_kwargs):
  790.         val = miscc.wxPoint2DDouble_GetVectorLength(self, *_args, **_kwargs)
  791.         return val
  792.  
  793.     
  794.     def GetVectorAngle(self, *_args, **_kwargs):
  795.         val = miscc.wxPoint2DDouble_GetVectorAngle(self, *_args, **_kwargs)
  796.         return val
  797.  
  798.     
  799.     def SetVectorLength(self, *_args, **_kwargs):
  800.         val = miscc.wxPoint2DDouble_SetVectorLength(self, *_args, **_kwargs)
  801.         return val
  802.  
  803.     
  804.     def SetVectorAngle(self, *_args, **_kwargs):
  805.         val = miscc.wxPoint2DDouble_SetVectorAngle(self, *_args, **_kwargs)
  806.         return val
  807.  
  808.     
  809.     def GetDistance(self, *_args, **_kwargs):
  810.         val = miscc.wxPoint2DDouble_GetDistance(self, *_args, **_kwargs)
  811.         return val
  812.  
  813.     
  814.     def GetDistanceSquare(self, *_args, **_kwargs):
  815.         val = miscc.wxPoint2DDouble_GetDistanceSquare(self, *_args, **_kwargs)
  816.         return val
  817.  
  818.     
  819.     def GetDotProduct(self, *_args, **_kwargs):
  820.         val = miscc.wxPoint2DDouble_GetDotProduct(self, *_args, **_kwargs)
  821.         return val
  822.  
  823.     
  824.     def GetCrossProduct(self, *_args, **_kwargs):
  825.         val = miscc.wxPoint2DDouble_GetCrossProduct(self, *_args, **_kwargs)
  826.         return val
  827.  
  828.     
  829.     def Set(self, *_args, **_kwargs):
  830.         val = miscc.wxPoint2DDouble_Set(self, *_args, **_kwargs)
  831.         return val
  832.  
  833.     
  834.     def __neg__(self, *_args, **_kwargs):
  835.         val = miscc.wxPoint2DDouble___neg__(self, *_args, **_kwargs)
  836.         if val:
  837.             val = wxPoint2DDoublePtr(val)
  838.             val.thisown = 1
  839.         
  840.         return val
  841.  
  842.     
  843.     def __iadd__(self, *_args, **_kwargs):
  844.         val = miscc.wxPoint2DDouble___iadd__(self, *_args, **_kwargs)
  845.         if val:
  846.             val = wxPoint2DDoublePtr(val)
  847.         
  848.         return val
  849.  
  850.     
  851.     def __isub__(self, *_args, **_kwargs):
  852.         val = miscc.wxPoint2DDouble___isub__(self, *_args, **_kwargs)
  853.         if val:
  854.             val = wxPoint2DDoublePtr(val)
  855.         
  856.         return val
  857.  
  858.     
  859.     def __imul__(self, *_args, **_kwargs):
  860.         val = miscc.wxPoint2DDouble___imul__(self, *_args, **_kwargs)
  861.         if val:
  862.             val = wxPoint2DDoublePtr(val)
  863.         
  864.         return val
  865.  
  866.     
  867.     def __idiv__(self, *_args, **_kwargs):
  868.         val = miscc.wxPoint2DDouble___idiv__(self, *_args, **_kwargs)
  869.         if val:
  870.             val = wxPoint2DDoublePtr(val)
  871.         
  872.         return val
  873.  
  874.     
  875.     def __eq__(self, *_args, **_kwargs):
  876.         val = miscc.wxPoint2DDouble___eq__(self, *_args, **_kwargs)
  877.         return val
  878.  
  879.     
  880.     def __ne__(self, *_args, **_kwargs):
  881.         val = miscc.wxPoint2DDouble___ne__(self, *_args, **_kwargs)
  882.         return val
  883.  
  884.     
  885.     def asTuple(self, *_args, **_kwargs):
  886.         val = miscc.wxPoint2DDouble_asTuple(self, *_args, **_kwargs)
  887.         return val
  888.  
  889.     
  890.     def __setattr__(self, name, value):
  891.         if name == 'm_x':
  892.             miscc.wxPoint2DDouble_m_x_set(self, value)
  893.             return None
  894.         
  895.         if name == 'm_y':
  896.             miscc.wxPoint2DDouble_m_y_set(self, value)
  897.             return None
  898.         
  899.         if name == 'x':
  900.             miscc.wxPoint2DDouble_x_set(self, value)
  901.             return None
  902.         
  903.         if name == 'y':
  904.             miscc.wxPoint2DDouble_y_set(self, value)
  905.             return None
  906.         
  907.         self.__dict__[name] = value
  908.  
  909.     
  910.     def __getattr__(self, name):
  911.         if name == 'm_x':
  912.             return miscc.wxPoint2DDouble_m_x_get(self)
  913.         
  914.         if name == 'm_y':
  915.             return miscc.wxPoint2DDouble_m_y_get(self)
  916.         
  917.         if name == 'x':
  918.             return miscc.wxPoint2DDouble_x_get(self)
  919.         
  920.         if name == 'y':
  921.             return miscc.wxPoint2DDouble_y_get(self)
  922.         
  923.         raise AttributeError, name
  924.  
  925.     
  926.     def __repr__(self):
  927.         return '<%s.%s instance; proxy of C++ wxPoint2DDouble instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  928.  
  929.     
  930.     def SetPolarCoordinates(self, angle, length):
  931.         self.SetVectorLength(length)
  932.         self.SetVectorAngle(angle)
  933.  
  934.     
  935.     def Normalize(self):
  936.         self.SetVectorLength(1.0)
  937.  
  938.     
  939.     def __str__(self):
  940.         return str(self.asTuple())
  941.  
  942.     
  943.     def __repr__(self):
  944.         return 'wxPoint2DDouble' + str(self.asTuple())
  945.  
  946.     
  947.     def __len__(self):
  948.         return len(self.asTuple())
  949.  
  950.     
  951.     def __getitem__(self, index):
  952.         return self.asTuple()[index]
  953.  
  954.     
  955.     def __setitem__(self, index, val):
  956.         if index == 0:
  957.             self.m_x = val
  958.         elif index == 1:
  959.             self.m_yt = val
  960.         else:
  961.             raise IndexError
  962.  
  963.     
  964.     def __nonzero__(self):
  965.         return self.asTuple() != (0.0, 0.0)
  966.  
  967.     
  968.     def __getinitargs__(self):
  969.         return ()
  970.  
  971.     
  972.     def __getstate__(self):
  973.         return self.asTuple()
  974.  
  975.     
  976.     def __setstate__(self, state):
  977.         self.Set(*state)
  978.  
  979.  
  980.  
  981. class wxPoint2DDouble(wxPoint2DDoublePtr):
  982.     
  983.     def __init__(self, *_args, **_kwargs):
  984.         self.this = miscc.new_wxPoint2DDouble(*_args, **_kwargs)
  985.         self.thisown = 1
  986.  
  987.  
  988.  
  989. def wxPoint2DDoubleCopy(*_args, **_kwargs):
  990.     val = wxPoint2DDoublePtr(miscc.new_wxPoint2DDoubleCopy(*_args, **_kwargs))
  991.     val.thisown = 1
  992.     return val
  993.  
  994.  
  995. def wxPoint2DDoubleFromPoint(*_args, **_kwargs):
  996.     val = wxPoint2DDoublePtr(miscc.new_wxPoint2DDoubleFromPoint(*_args, **_kwargs))
  997.     val.thisown = 1
  998.     return val
  999.  
  1000.  
  1001. class wxIndividualLayoutConstraintPtr(wxObjectPtr):
  1002.     
  1003.     def __init__(self, this):
  1004.         self.this = this
  1005.         self.thisown = 0
  1006.  
  1007.     
  1008.     def Above(self, *_args, **_kwargs):
  1009.         val = miscc.wxIndividualLayoutConstraint_Above(self, *_args, **_kwargs)
  1010.         return val
  1011.  
  1012.     
  1013.     def Absolute(self, *_args, **_kwargs):
  1014.         val = miscc.wxIndividualLayoutConstraint_Absolute(self, *_args, **_kwargs)
  1015.         return val
  1016.  
  1017.     
  1018.     def AsIs(self, *_args, **_kwargs):
  1019.         val = miscc.wxIndividualLayoutConstraint_AsIs(self, *_args, **_kwargs)
  1020.         return val
  1021.  
  1022.     
  1023.     def Below(self, *_args, **_kwargs):
  1024.         val = miscc.wxIndividualLayoutConstraint_Below(self, *_args, **_kwargs)
  1025.         return val
  1026.  
  1027.     
  1028.     def Unconstrained(self, *_args, **_kwargs):
  1029.         val = miscc.wxIndividualLayoutConstraint_Unconstrained(self, *_args, **_kwargs)
  1030.         return val
  1031.  
  1032.     
  1033.     def LeftOf(self, *_args, **_kwargs):
  1034.         val = miscc.wxIndividualLayoutConstraint_LeftOf(self, *_args, **_kwargs)
  1035.         return val
  1036.  
  1037.     
  1038.     def PercentOf(self, *_args, **_kwargs):
  1039.         val = miscc.wxIndividualLayoutConstraint_PercentOf(self, *_args, **_kwargs)
  1040.         return val
  1041.  
  1042.     
  1043.     def RightOf(self, *_args, **_kwargs):
  1044.         val = miscc.wxIndividualLayoutConstraint_RightOf(self, *_args, **_kwargs)
  1045.         return val
  1046.  
  1047.     
  1048.     def SameAs(self, *_args, **_kwargs):
  1049.         val = miscc.wxIndividualLayoutConstraint_SameAs(self, *_args, **_kwargs)
  1050.         return val
  1051.  
  1052.     
  1053.     def Set(self, *_args, **_kwargs):
  1054.         val = miscc.wxIndividualLayoutConstraint_Set(self, *_args, **_kwargs)
  1055.         return val
  1056.  
  1057.     
  1058.     def __repr__(self):
  1059.         return '<%s.%s instance; proxy of C++ wxIndividualLayoutConstraint instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1060.  
  1061.  
  1062.  
  1063. class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr):
  1064.     
  1065.     def __init__(self, this):
  1066.         self.this = this
  1067.  
  1068.  
  1069.  
  1070. class wxLayoutConstraintsPtr(wxObjectPtr):
  1071.     
  1072.     def __init__(self, this):
  1073.         self.this = this
  1074.         self.thisown = 0
  1075.  
  1076.     
  1077.     def __setattr__(self, name, value):
  1078.         if name == 'bottom':
  1079.             miscc.wxLayoutConstraints_bottom_set(self, value.this)
  1080.             return None
  1081.         
  1082.         if name == 'centreX':
  1083.             miscc.wxLayoutConstraints_centreX_set(self, value.this)
  1084.             return None
  1085.         
  1086.         if name == 'centreY':
  1087.             miscc.wxLayoutConstraints_centreY_set(self, value.this)
  1088.             return None
  1089.         
  1090.         if name == 'height':
  1091.             miscc.wxLayoutConstraints_height_set(self, value.this)
  1092.             return None
  1093.         
  1094.         if name == 'left':
  1095.             miscc.wxLayoutConstraints_left_set(self, value.this)
  1096.             return None
  1097.         
  1098.         if name == 'right':
  1099.             miscc.wxLayoutConstraints_right_set(self, value.this)
  1100.             return None
  1101.         
  1102.         if name == 'top':
  1103.             miscc.wxLayoutConstraints_top_set(self, value.this)
  1104.             return None
  1105.         
  1106.         if name == 'width':
  1107.             miscc.wxLayoutConstraints_width_set(self, value.this)
  1108.             return None
  1109.         
  1110.         self.__dict__[name] = value
  1111.  
  1112.     
  1113.     def __getattr__(self, name):
  1114.         if name == 'bottom':
  1115.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_bottom_get(self))
  1116.         
  1117.         if name == 'centreX':
  1118.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreX_get(self))
  1119.         
  1120.         if name == 'centreY':
  1121.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreY_get(self))
  1122.         
  1123.         if name == 'height':
  1124.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_height_get(self))
  1125.         
  1126.         if name == 'left':
  1127.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_left_get(self))
  1128.         
  1129.         if name == 'right':
  1130.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_right_get(self))
  1131.         
  1132.         if name == 'top':
  1133.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_top_get(self))
  1134.         
  1135.         if name == 'width':
  1136.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self))
  1137.         
  1138.         raise AttributeError, name
  1139.  
  1140.     
  1141.     def __repr__(self):
  1142.         return '<%s.%s instance; proxy of C++ wxLayoutConstraints instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1143.  
  1144.  
  1145.  
  1146. class wxLayoutConstraints(wxLayoutConstraintsPtr):
  1147.     
  1148.     def __init__(self, *_args, **_kwargs):
  1149.         self.this = miscc.new_wxLayoutConstraints(*_args, **_kwargs)
  1150.         self.thisown = 1
  1151.  
  1152.  
  1153.  
  1154. class wxAcceleratorEntryPtr:
  1155.     
  1156.     def __init__(self, this):
  1157.         self.this = this
  1158.         self.thisown = 0
  1159.  
  1160.     
  1161.     def __del__(self, delfunc = miscc.delete_wxAcceleratorEntry):
  1162.         if self.thisown == 1:
  1163.             
  1164.             try:
  1165.                 delfunc(self)
  1166.  
  1167.         
  1168.  
  1169.     
  1170.     def Set(self, *_args, **_kwargs):
  1171.         val = miscc.wxAcceleratorEntry_Set(self, *_args, **_kwargs)
  1172.         return val
  1173.  
  1174.     
  1175.     def GetFlags(self, *_args, **_kwargs):
  1176.         val = miscc.wxAcceleratorEntry_GetFlags(self, *_args, **_kwargs)
  1177.         return val
  1178.  
  1179.     
  1180.     def GetKeyCode(self, *_args, **_kwargs):
  1181.         val = miscc.wxAcceleratorEntry_GetKeyCode(self, *_args, **_kwargs)
  1182.         return val
  1183.  
  1184.     
  1185.     def GetCommand(self, *_args, **_kwargs):
  1186.         val = miscc.wxAcceleratorEntry_GetCommand(self, *_args, **_kwargs)
  1187.         return val
  1188.  
  1189.     
  1190.     def __repr__(self):
  1191.         return '<%s.%s instance; proxy of C++ wxAcceleratorEntry instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1192.  
  1193.  
  1194.  
  1195. class wxAcceleratorEntry(wxAcceleratorEntryPtr):
  1196.     
  1197.     def __init__(self, *_args, **_kwargs):
  1198.         self.this = miscc.new_wxAcceleratorEntry(*_args, **_kwargs)
  1199.         self.thisown = 1
  1200.  
  1201.  
  1202.  
  1203. class wxAcceleratorTablePtr(wxObjectPtr):
  1204.     
  1205.     def __init__(self, this):
  1206.         self.this = this
  1207.         self.thisown = 0
  1208.  
  1209.     
  1210.     def __del__(self, delfunc = miscc.delete_wxAcceleratorTable):
  1211.         if self.thisown == 1:
  1212.             
  1213.             try:
  1214.                 delfunc(self)
  1215.  
  1216.         
  1217.  
  1218.     
  1219.     def __repr__(self):
  1220.         return '<%s.%s instance; proxy of C++ wxAcceleratorTable instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1221.  
  1222.  
  1223.  
  1224. class wxAcceleratorTable(wxAcceleratorTablePtr):
  1225.     
  1226.     def __init__(self, *_args, **_kwargs):
  1227.         self.this = miscc.new_wxAcceleratorTable(*_args, **_kwargs)
  1228.         self.thisown = 1
  1229.  
  1230.  
  1231.  
  1232. class wxBusyInfoPtr(wxObjectPtr):
  1233.     
  1234.     def __init__(self, this):
  1235.         self.this = this
  1236.         self.thisown = 0
  1237.  
  1238.     
  1239.     def __del__(self, delfunc = miscc.delete_wxBusyInfo):
  1240.         if self.thisown == 1:
  1241.             
  1242.             try:
  1243.                 delfunc(self)
  1244.  
  1245.         
  1246.  
  1247.     
  1248.     def __repr__(self):
  1249.         return '<%s.%s instance; proxy of C++ wxBusyInfo instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1250.  
  1251.  
  1252.  
  1253. class wxBusyInfo(wxBusyInfoPtr):
  1254.     
  1255.     def __init__(self, *_args, **_kwargs):
  1256.         self.this = miscc.new_wxBusyInfo(*_args, **_kwargs)
  1257.         self.thisown = 1
  1258.  
  1259.  
  1260. wxIntersectRect = miscc.wxIntersectRect
  1261. wxNewId = miscc.wxNewId
  1262. wxRegisterId = miscc.wxRegisterId
  1263. wxGetCurrentId = miscc.wxGetCurrentId
  1264. wxBell = miscc.wxBell
  1265. wxEndBusyCursor = miscc.wxEndBusyCursor
  1266. wxGetElapsedTime = miscc.wxGetElapsedTime
  1267. wxGetFreeMemory = miscc.wxGetFreeMemory
  1268. wxGetMousePosition = miscc.wxGetMousePosition
  1269. wxIsBusy = miscc.wxIsBusy
  1270. wxNow = miscc.wxNow
  1271. wxShell = miscc.wxShell
  1272. wxStartTimer = miscc.wxStartTimer
  1273. wxGetOsVersion = miscc.wxGetOsVersion
  1274. wxGetOsDescription = miscc.wxGetOsDescription
  1275. wxShutdown = miscc.wxShutdown
  1276. wxSleep = miscc.wxSleep
  1277. wxUsleep = miscc.wxUsleep
  1278. wxYield = miscc.wxYield
  1279. wxYieldIfNeeded = miscc.wxYieldIfNeeded
  1280. wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows
  1281. wxStripMenuCodes = miscc.wxStripMenuCodes
  1282. wxGetEmailAddress = miscc.wxGetEmailAddress
  1283. wxGetHostName = miscc.wxGetHostName
  1284. wxGetFullHostName = miscc.wxGetFullHostName
  1285. wxGetUserId = miscc.wxGetUserId
  1286. wxGetUserName = miscc.wxGetUserName
  1287. wxGetHomeDir = miscc.wxGetHomeDir
  1288. wxGetUserHome = miscc.wxGetUserHome
  1289. wxGetProcessId = miscc.wxGetProcessId
  1290. wxTrap = miscc.wxTrap
  1291.  
  1292. def wxGetAccelFromString(*_args, **_kwargs):
  1293.     val = miscc.wxGetAccelFromString(*_args, **_kwargs)
  1294.     if val:
  1295.         val = wxAcceleratorEntryPtr(val)
  1296.     
  1297.     return val
  1298.  
  1299. wxSHUTDOWN_POWEROFF = miscc.wxSHUTDOWN_POWEROFF
  1300. wxSHUTDOWN_REBOOT = miscc.wxSHUTDOWN_REBOOT
  1301. wxLeft = miscc.wxLeft
  1302. wxTop = miscc.wxTop
  1303. wxRight = miscc.wxRight
  1304. wxBottom = miscc.wxBottom
  1305. wxWidth = miscc.wxWidth
  1306. wxHeight = miscc.wxHeight
  1307. wxCentre = miscc.wxCentre
  1308. wxCenter = miscc.wxCenter
  1309. wxCentreX = miscc.wxCentreX
  1310. wxCentreY = miscc.wxCentreY
  1311. wxUnconstrained = miscc.wxUnconstrained
  1312. wxAsIs = miscc.wxAsIs
  1313. wxPercentOf = miscc.wxPercentOf
  1314. wxAbove = miscc.wxAbove
  1315. wxBelow = miscc.wxBelow
  1316. wxLeftOf = miscc.wxLeftOf
  1317. wxRightOf = miscc.wxRightOf
  1318. wxSameAs = miscc.wxSameAs
  1319. wxAbsolute = miscc.wxAbsolute
  1320. cvar = miscc.cvar
  1321. wxNullAcceleratorTable = wxAcceleratorTablePtr(miscc.cvar.wxNullAcceleratorTable)
  1322.